using Digitalmes.Domain.Entities.Mes.Calendars;

namespace Digitalmes.Domain.Entities.Mes.Productions;

/// <summary>
/// 班次生产任务
/// </summary>
[SugarTable("prod_shift_task")]
public sealed class ProdShiftTask : AuditedEntity
{
    /// <summary>
    /// 产线 Id
    /// </summary>
    public long LineId { get; set; }

    /// <summary>
    /// 班次 Id
    /// </summary>
    public long ShiftId { get; set; }

    /// <summary>
    /// 班次
    /// </summary>
    [Navigate(NavigateType.OneToOne, nameof(ShiftId))]
    public CalShift? Shift { get; set; }

    /// <summary>
    /// 任务数量
    /// </summary>
    public int Qty { get; set; }
}
